package com.zkingsoft.laqeelin.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

import com.matrix.core.pojo.PaginationVO;
import com.zkingsoft.laqeelin.bean.BizUser;

/**
 * @description (用户表)
 * @author 何明
 * @date 2018-09-01 10:35
 */
public interface BizUserDao{

	public int insert(@Param("item") BizUser bizUser);
   	
   	public int batchInsert(@Param("list") List<BizUser> bizUserList);
   	
	public int updateByMap(Map<String, Object> modifyMap);
	
	public int updateByModel(@Param("record")BizUser bizUser);
	
	public int deleteByIds(@Param("list") List<String> list);
	
	public int deleteById(String userId);

	public int deleteByModel(@Param("record") BizUser bizUser);
	
	public List<BizUser> selectInPage(@Param("record") BizUser bizUser, @Param("pageVo") PaginationVO pageVo);

	public List<BizUser> selectByModel(@Param("record") BizUser bizUser);
	
	public int selectTotalRecord(@Param("record") BizUser bizUser);
	
	public BizUser  selectById(String userId);
	
	public BizUser  selectForUpdate(String userId);
	
	public int updateByOpenId(@Param("record")BizUser bizUser);

	public BizUser findByOpenId(@Param("openId")String openId);
}